[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Str_to_Int


Purpose   Converts a string to an integer.

Decln.    Str_to_Int(Str:string):integer;

Returns   Integer

Remarks   Str is the source string.

          If the string is null or cannot be successfully converted to an
          integer, the function returns a zero.

Example

VAR
  I : INTEGER;
BEGIN
    I := STR_TO_INT('165');
END;

The variable I is assigned the value 165.

See Also: Int_to_Str Str_to_Real Str_to_Long
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson